Inside NIH Image
About this Document
Macro Examples, Techniques & Operations
What is a macro and why write one?
Before you begin
For the programming beginner
Macro global vs. local vars
Putmessage, ShowMessage & Write
Switching and choosing windows
How to input a number or string
Looping
Regions of Interest (ROI)
Detecting the press of the mouse button
Detecting press of option, shift and control keys
Measurement and rUser Arrays
Placing macro data in the "Results" window
Saving results data to a tab delimeted file
Operating on each image in a stack (SelectSlice)
Accessing bytes of an image
Reading from disk (importing)
Batch Processing
Avoiding a macro dialog box
TickCount
Accessing an image Look Up Table (LUT)
Placing time and date into your data
PlotData notes
Calling user written pascal from a macro
Pascal Examples, Techniques & Operations
Users can use User.p
Recommended addition when adding to pascal
Returning a value from pascal to a macro
Pascal versions of SelectSlice & SelectPic
Putmessage, showmessage & PutmessageWithCancel
Inputting a number
Reading from disk
Memory and pointer allocation
Operating on an Image
Getting at the bytes of an image
Working with two images
Touching the 4th dimension (4D datasets)
Creating a dialog box
Key & mouse
Image and text